package com.dfrz.household.service;/*
 * @创建者：黄苟苟
 * @创建时间：2021/8/12   14:13
 * @Description描述
 **/

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dfrz.household.bean.ServerPerson;

import java.util.List;
import java.util.Map;

public interface ServerPersonService {

    public ServerPerson getUserById(Integer id);

    public List <ServerPerson> getUsers();

    /**
     * 带参数查询
     *
     * @param parm
     * @return
     */
    public List <ServerPerson> getUsersParm(Map <String, String> parm);

    /**
     * 分页查询
     *
     * @param parm
     * @param pageNo
     * @param pageSize
     * @return
     */
    public IPage <ServerPerson> getUserByPage(Map <String, String> parm, Integer pageNo, Integer pageSize);

    public void delete(Integer id);

    public void save(ServerPerson user);

    public void update(ServerPerson user);

    public ServerPerson getUserByUname(String uname);

    public List <ServerPerson> getAllSerperson();

    public ServerPerson getOneServerPerson(Integer id);

    public ServerPerson getServerpersonCompanyById(Integer serid);

    public ServerPerson getServerPersonById(Integer id);

    public List <ServerPerson> getServerpersonByPage(int currPage, int pageSize);
}
